package xyz.mint123.proj.common.persistence;

import java.io.Serializable;
import java.util.List;
import java.util.Map;
/**
 * JSON 数据统一返回类
 * @author mint
 * @version 2017-11-1
 */
public class JsonResult<E> implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 执行是否成功
	 */
	private boolean success = false;
	/**
	 * 状态码 layui-Table 默认0 成功
	 */
	private int code;
	/**
	 * 提示消息
	 */
	private String msg;

	/**
	 * 消息提示图标
	 */
	private int icon;
	
	/**
	 * 集合数据
	 */
	private List<E> list;
	/**
	 * MAP 数据
	 */
	private Map<String, Object> map;

	/**
	 * 返回数据条数
	 */
	private long count;

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public int getIcon() {
		return icon;
	}

	public void setIcon(int icon) {
		this.icon = icon;
	}

	public List<E> getList() {
		return list;
	}

	public void setList(List<E> list) {
		this.list = list;
	}

	public Map<String, Object> getMap() {
		return map;
	}

	public void setMap(Map<String, Object> map) {
		this.map = map;
	}

	public long getCount() {
		return count;
	}

	public void setCount(long count) {
		this.count = count;
	}
	
	
}
